import java.util.Arrays;
import java.util.Random;

public class Test {
    public static void main9(String[] args) {
        int[] array = {3,1,4,9,5,2,6,7,8,9,5,9,6,4,1};
        System.out.println("计数排序：");
        Sort.countSort(array);
        System.out.println(Arrays.toString(array));
    }
    public static void main8(String[] args) {
        int[] array = {3,1,4,9,5,2,6,7,8,9,5,9,6,4,1};
        System.out.println("归并排序：");
        Sort.mergeSort2(array);
        System.out.println(Arrays.toString(array));
    }
    public static void main7(String[] args) {
        int[] array = {3,1,4,9,5,2,6,7,8,9,5,9,6,4,1};
        System.out.println("归并排序：");
        Sort.mergeSort1(array);
        System.out.println(Arrays.toString(array));
    }

    public static void main6(String[] args) {
        int[] array = {3,1,4,9,5,2,6,7,8,9,5,9,6,4,1};
        System.out.println("快速排序：");
        Sort.quickSort2(array);
        System.out.println(Arrays.toString(array));
    }
    public static void main5(String[] args) {
        int[] array = {3,1,4,9,5,2,6,7,8,9,5,9,6,4,1};
        System.out.println("冒泡排序：");
        Sort.bubbleSort(array);
        System.out.println(Arrays.toString(array));
    }
    public static void main(String[] args) {
        int[] array = {3,1,4,9,5,2,6,7,8,9,5,9,6,4,1};
        System.out.println("堆排序：");
        Sort.heapSort2(array);
        System.out.println(Arrays.toString(array));
    }
    public static void main3(String[] args) {
        int[] array = {3,1,4,9,5,2,6,7,8,9,5,9,6,4,1};
        System.out.println("选择排序：");
        Sort.selectSort2(array);
        System.out.println(Arrays.toString(array));
    }
    public static void main2(String[] args) {

        int[] array = new int[10_0000];
        Sort.readyDataOrder(array);
        Sort.testInsertSort1(array);
        Sort.testInsertSort2(array);
    }
    public static void main1(String[] args) {
        int[] array = {3,1,4,9,5,2,6,7,8,9,5,9,6,4,1};
        System.out.println("直接插入排序：");
        Sort.insertSort2(array);
        System.out.println(Arrays.toString(array));
//        System.out.println("希尔排序：");
//        Sort.shellSort(array);
//        System.out.println(Arrays.toString(array));
    }
}
